package com.cn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cn.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    List<Orders> getOrdersList(@Param("number") String number, @Param("status")Integer status,
                               @Param("phone")String phone, @Param("consignee")String consignee,
                               Page page);
    Orders selectAllById(@Param("id") Long id);

    Integer updateAddress(Orders orders);
}